package com.qf.service;

import com.qf.pojo.Goods;
import com.qf.util.ResultMsg;
import com.qf.vo.VoGoods;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

public interface GoodsService {

    /**
     *
     * @param page 页码
     * @param limit 行数
     * @return
     */
    ResultMsg selectAll(int page,int limit);

    ResultMsg selectAllBySearch(Date from,Date to);

    ResultMsg deleteById(int gid);

    ResultMsg selectOne(int gid);

    ResultMsg update(VoGoods goods);

    ResultMsg upload(MultipartFile file);
}
